

#include "MainFrame.h"
#include "PadTree.h"

CMainFrame::CMainFrame()
    : m_nodeWin(NULL)
{
}

CMainFrame::~CMainFrame()
{
    if (m_nodeWin)
        delete m_nodeWin;
}


void CMainFrame::OnCreate()
{
    CRect rect(100, 100, 600, 400);
    m_nodeWin = new CPadTree();
    m_nodeWin->Create(this, rect, "");
    m_nodeWin->Show();
}

